package com.qlm.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.jfinal.aop.Before;
import com.jfinal.core.Controller;
import com.qlm.interceptor.AuthInterceptor;
import com.qlm.service.IScanInfoService;
import com.qlm.service.impl.ScanInfoServiceImpl;
import com.qlm.view.ResultMessage;

@Before(AuthInterceptor.class)
public class ScanInfoController extends Controller {
	private static final Logger logger = LoggerFactory.getLogger(ScanInfoController.class);
	private  IScanInfoService scanInfoService = enhance(ScanInfoServiceImpl.class);
	
	/**
	 * 进入扫码信息查询页面
	 */
	public void getScanInfoPage(){
		renderJsp("/page/scanInfo.jsp");
	}
	
	/**
	 * 查询扫码记录
	 */
	public void getScanInfo(){
		String desc = getPara("desc");
		ResultMessage rm = scanInfoService.getScanInfo(desc);
		renderJson(rm);
	}
}
